package com.deliinsns.app.entrance;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.deliinsns.app.account.bean.WebUser;
import com.deliinsns.sys.BasicController;
@Controller
public class ManagerEntrance extends BasicController {
	
	@RequestMapping(value = "/admin", method = RequestMethod.GET)
	 public String admin(HttpServletRequest request,HttpServletResponse response)throws Exception {
		String page="manager/page/login";
		WebUser user= (WebUser)request.getSession().getAttribute("user");
		if(user!=null)
			page="admin/main";
		return page;
	 }
//	@RequestMapping(value = "/manager/page/login", method = RequestMethod.GET)
//	 public String home(HttpServletRequest request,HttpServletResponse response)throws Exception {
//		return "manager/home";
//	 }
//	@RequestMapping(value = "/manager/home", method = RequestMethod.GET)
//	 public String home(HttpServletRequest request,HttpServletResponse response)throws Exception {
//		return "manager/home";
//	 }
//	@RequestMapping(value = "/manager/home", method = RequestMethod.GET)
//	 public String home(HttpServletRequest request,HttpServletResponse response)throws Exception {
//		return "manager/home";
//	 }
	
}
